<template>
  <div id="drawPanel"></div>
</template>

<script>
const HDScene = window.liveHDScene
export default {
  methods: {
    init() {
      HDScene.addEvent(HDScene.OnLoginSuccess, e => {
        let docType = HDScene.getLive().documentDisplayMode
        if (docType == 1) {
          //开启极速文档自适应模式
          HDScene.documentAdaptive(true)
        } else {
          //开启极速文档自适应模式
          HDScene.documentAdaptive(false)
        }
      })
    }
  },
  mounted() {
    this.init()
  }
}
</script>
